/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.axiom.utility;

import java.io.FileInputStream;
import java.util.Properties;

/**
 *
 * @author Shuhail
 */
public class PropertyReader {
    
    
    public static String getPropValues(String name) {
        
        Properties prop = new Properties();
        try {
            
            prop.load(new FileInputStream("src\\com\\axiom\\utility\\property.properties"));
            return prop.getProperty(name);
        }
        catch(Exception e) {
            
            e.printStackTrace();
            return null;
        }
        
    }
        
        public static String[] getRoleValuesFromProp() {
            
            String roles = getPropValues("roles");
            String[] role = roles.split(",");
            return role;
        }
        
    
        public static void main(String[] args) {
            
            getRoleValuesFromProp();
            
        }
    }

